<div class="bjui-pageHeader">
	<form id="pagerForm" data-toggle="ajaxsearch" action="${ctx}/faq" method="post">
        <input type="hidden" name="pageSize" value="${page.pageSize!15}">
        <input type="hidden" name="pageCurrent" value="${page.pageCurrent!1}">
        <input type="hidden" name="orderField" value="${page.orderField!"ctime"}">
        <input type="hidden" name="orderDirection" value="${page.orderDirection!"desc"}">
        
        <div class="bjui-searchBar">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="${ctx}/faq/remove?tabid=${tabid!}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="delids" data-group="ids">删除选中</a></li>
                    </ul>
                </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
        <table id="processtable" class="table table-bordered table-hover table-top" data-toggle="tablefixed" data-nowrap="false">
            <thead>
                <tr>
                    <th width="35" title="序号">序号</th>
                    <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                	<th data-order-field="ctime" width="150" title="回复时间">回复时间</th>
                	<th data-order-field="img" width="85" title="回复人">回复人</th>
                	<th data-order-field="nickname" width="150" title="昵称">昵称</th>
                	<th data-order-field="title" width="350" title="content">内容</th>
                	<th title="操作" width="160">操作
                	</th>
                </tr>
            </thead>
            <tbody>
            <%
               if (page.pageData != null){
               var i = 0;
                  for (item in page.pageData){
                  i=i+1;
            %>
	                		<tr data-id="${item.id!}" >
	                		    <td>${i!}</td>
				                <td><input type="checkbox" name="ids" data-toggle="icheck" value="${item.id!}"></td>
                    			<td>${item.ctime!,dateFormat="yyyy-MM-dd hh:mm:ss"}</td> 
				                <td data-val="pic-id-4">
				                <%
				                  if (item.img == null){
				                %>
				                <img src="${ctx}/static/web/img/wechat.png"/>
				                <%
				                  }else{
				                %>
				                <img src="${item.img!}46"/>
				                <%
				                  }
				                %>
				                </td>
                    			<td >${item.nickname!}</td>
                    			<%
                    			   if (strutil. length(item.content) > 80){
                    			%>
                    			<td>${strutil.subString(item.content,80)}</td> 
                    			<%
                    			   }else{
                    			%>
                    			<td>${item.content!}</td>
                    			<%}%>                    			
                    			<td data-notread="true">
				                <a href="${ctx}/faq/remove?delids=${item.id!}&tabid=${tabid!}" data-toggle="doajax" class="btn btn-red row-del" data-confirm-msg="确定要删除该主题吗？">删除</a>
				                <a href="${ctx}/faq/childview?id=${item.id!}&tabid=${tabid!}" data-toggle="dialog" class="btn btn-blue" data-id="" data-width="600" data-height="600" value="" data-mask="true" data-type="POST" data-title="内容">内容</a>
                    			</td>
				            </tr>
		           <%
		          }
		       }
		    %>
            </tbody>
        </table>
     </div>
    <div class="bjui-pageFooter">
		<div class="pages">
			<span>每页&nbsp;</span>
			<div class="selectPagesize">
				<select data-toggle="selectpicker" data-defval="${page.pageSize!}" data-toggle-change="changepagesize" >
		    		<option value="50">50</option>
		        	<option value="100">100</option>
		        	<option value="150">150</option>
		        	<option value="200">200</option>
		    	</select>
			</div>
			<span>&nbsp;条，共 ${page.totalRow!0} 条</span>
		</div>
		<div class="pagination-box" data-toggle="pagination" data-total="${page.totalRow!}" data-page-size="${page.pageSize!15}" data-page-current="${page.pageCurrent!1}">
		</div>
	</div>